import React from 'react';
import { Button, DatePicker } from 'antd';
import { UploadOutlined } from '@ant-design/icons';

const Editor = require('wangeditor')

export default class AddDaily extends React.Component {
    constructor(props) {
        super(props);
        this.state = {};
        this.editor = null;
    }

    componentDidMount() {
        this.editor = new Editor('#wangeditor');
        this.editor.create()
    }

    render() {
        return (
            <div className="work-daily-add page">
                <span>日期：</span>
                <DatePicker />
                <p className="clear mb-20" />
                <Button size="large" type="primary">
                    <UploadOutlined />
                    导入文件
                </Button>
                <div className="mv-20" id="wangeditor" />
                <Button size="large" type="primary">提交</Button>
            </div>
        )
    }
}
export { AddDaily };